import mockjs from 'mockjs'

export default {
  // 支持值为 Object 和 Array
  'GET /api/company/list': mockjs.mock({
    code: '0000',
    message: 'success',
    'result|100': [{id: '@id', recordId: '@id'}]
  }),
  'GET /api/mortgage/list': mockjs.mock({
    code: '0000',
    message: 'success',
    result: {
      'records|100': [{
        'mortgageRecordId|+1': 1,
        assertNo: '@id',
        companyRecordId: '@id',
        companyName: '@name',
        'amount|+50': 235,
        statusDesc: `@pick(['已审批', '待审批'])`,
        productName: `@pick(['e快付','e支付'])`,
        'loanAmount|+132': 234,
        'fee|+23': 12,
        purchaserName: '@name',
        fundName: '@name'
      }]
    }
  })
}
